//
//  SubViewController.m
//  10103-九宫格
//
//  Created by student on 16/2/28.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "SubViewController.h"

@interface SubViewController ()

@end

@implementation SubViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)layoutSubviews{
    [self.view layoutSubviews];
    int width = self.view.frame.size.width;
    int height = self.view.frame.size.height;
    self.imageView1.frame = CGRectMake(0, 0, width-20, height-20);
    self.imageView2.frame = CGRectMake(0, 0, 0, 0);
    self.label1.frame = CGRectMake(0, 0, 0, 0);
    self.label2.frame = CGRectMake(0, 0, 0, 0);
}

//-(void)layoutSublayersOfLayer:(CALayer *)layer{
//    int width = self.view.frame.size.width;
//    int height = self.view.frame.size.height;
//    self.imageView1.frame = CGRectMake(0, 0, width-20, height-20);
//    self.imageView2.frame = CGRectMake(0, 0, 0, 0);
//    self.label1.frame = CGRectMake(0, 0, 0, 0);
//    self.label2.frame = CGRectMake(0, 0, 0, 0);
//}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
